package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserMannagementService {
    public void add(User user, Integer[] roleIds);
    public PageResult findPage(QueryPageBean pageBean);
    public User findById(Integer id);
    public void edit(User user, Integer[] roleIds);
    public List<User> findAll();
    public List<Role> roleFindAll();
    public List<Integer> findRoleIdsByUserId(Integer userId);
    void deleteByUserId(Integer userId);

    int findUserByUsername(String username);
}
